package com.stylefeng.guns.modular.flowers.service.impl;

import com.stylefeng.guns.common.persistence.model.FlowerType;
import com.stylefeng.guns.common.persistence.model.Flowers;
import com.stylefeng.guns.modular.flowers.dao.FlowersDao;
import org.springframework.stereotype.Service;
import com.stylefeng.guns.modular.flowers.service.IFlowersService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * flowersDao
 *
 * @author fengshuonan
 * @Date 2019-07-11 15:57:15
 */
@Service
public class FlowersServiceImpl implements IFlowersService {

    @Resource
    private FlowersDao flowersDao;

    @Override
    public List<Map<String, Object>> showFlowersTable(String condition) {
        return flowersDao.showFlowersTable(condition);
    }

    @Override
    public int addFlower(Flowers flowers) {
        return flowersDao.addFlower(flowers);
    }

    @Override
    public int updateFlower(Flowers flowers) {
        return flowersDao.updateFlower(flowers);
    }

    @Override
    public FlowerType selectByType(Integer id) {
        return flowersDao.selectByType(id);
    }

    @Override
    public FlowerType selFlowerType(Integer fid) {
        return flowersDao.selFlowerType(fid);
    }
}
